package org.shoukaiseki.supersaiyan.generator.domain.entity;

import org.apache.ibatis.type.Alias;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.shoukaiseki.supersaiyan.common.core.domain.base.BaseEntity;

/**
 * 代码生成业务字段 对象 gen_table_column
 *
 * @author shoukaiseki
 * @date 2022-11-07
 */
@Alias("GenTableColumnEntity")
public class GenTableColumnEntity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static final String TABLE_NAME = "gen_table_column";

    //主键名
    public static final String TABLE_UNIQUE_ID_NAME = "column_id";

    /** 编号 */
    private Long columnId;

    /** 归属表编号 */
    private Long tableId;

    /** 列名称 */
    private String columnName;

    /** 列描述 */
    private String columnComment;

    /** 列类型 */
    private String columnType;

    /** JAVA类型 */
    private String javaType;

    /** JAVA字段名 */
    private String javaField;

    /** 是否主键（1是） */
    private String isPk;

    /** 是否自增（1是） */
    private String isIncrement;

    /** 是否必填（1是） */
    private String isRequired;

    /** 是否为插入字段（1是） */
    private String isInsert;

    /** 是否编辑字段（1是） */
    private String isEdit;

    /** 是否列表字段（1是） */
    private String isList;

    /** 是否查询字段（1是） */
    private String isQuery;

    /** 查询方式 */
    private String queryType;

    /** 显示类型 */
    private String htmlType;

    /** 字典类型 */
    private String dictType;

    /** SKS查询控件类型 */
    private String sksQueryHtmlType;

    /** SKS列表控件类型 */
    private String sksListHtmlType;

    /** SKS对话框控件类型 */
    private String sksFormHtmlType;

    /** SKS对话框校验类型 */
    private String sksFormRuleType;

    /** 排序 */
    private Integer sort;

    public void setColumnId(Long columnId)
    {
        this.columnId = columnId;
    }

    public Long getColumnId()
    {
        return columnId;
    }
    public void setTableId(Long tableId)
    {
        this.tableId = tableId;
    }

    public Long getTableId()
    {
        return tableId;
    }
    public void setColumnName(String columnName)
    {
        this.columnName = columnName;
    }

    public String getColumnName()
    {
        return columnName;
    }
    public void setColumnComment(String columnComment)
    {
        this.columnComment = columnComment;
    }

    public String getColumnComment()
    {
        return columnComment;
    }
    public void setColumnType(String columnType)
    {
        this.columnType = columnType;
    }

    public String getColumnType()
    {
        return columnType;
    }
    public void setJavaType(String javaType)
    {
        this.javaType = javaType;
    }

    public String getJavaType()
    {
        return javaType;
    }
    public void setJavaField(String javaField)
    {
        this.javaField = javaField;
    }

    public String getJavaField()
    {
        return javaField;
    }
    public void setIsPk(String isPk)
    {
        this.isPk = isPk;
    }

    public String getIsPk()
    {
        return isPk;
    }
    public void setIsIncrement(String isIncrement)
    {
        this.isIncrement = isIncrement;
    }

    public String getIsIncrement()
    {
        return isIncrement;
    }
    public void setIsRequired(String isRequired)
    {
        this.isRequired = isRequired;
    }

    public String getIsRequired()
    {
        return isRequired;
    }
    public void setIsInsert(String isInsert)
    {
        this.isInsert = isInsert;
    }

    public String getIsInsert()
    {
        return isInsert;
    }
    public void setIsEdit(String isEdit)
    {
        this.isEdit = isEdit;
    }

    public String getIsEdit()
    {
        return isEdit;
    }
    public void setIsList(String isList)
    {
        this.isList = isList;
    }

    public String getIsList()
    {
        return isList;
    }
    public void setIsQuery(String isQuery)
    {
        this.isQuery = isQuery;
    }

    public String getIsQuery()
    {
        return isQuery;
    }
    public void setQueryType(String queryType)
    {
        this.queryType = queryType;
    }

    public String getQueryType()
    {
        return queryType;
    }
    public void setHtmlType(String htmlType)
    {
        this.htmlType = htmlType;
    }

    public String getHtmlType()
    {
        return htmlType;
    }
    public void setDictType(String dictType)
    {
        this.dictType = dictType;
    }

    public String getDictType()
    {
        return dictType;
    }
    public void setSksQueryHtmlType(String sksQueryHtmlType)
    {
        this.sksQueryHtmlType = sksQueryHtmlType;
    }

    public String getSksQueryHtmlType()
    {
        return sksQueryHtmlType;
    }
    public void setSksListHtmlType(String sksListHtmlType)
    {
        this.sksListHtmlType = sksListHtmlType;
    }

    public String getSksListHtmlType()
    {
        return sksListHtmlType;
    }
    public void setSksFormHtmlType(String sksFormHtmlType)
    {
        this.sksFormHtmlType = sksFormHtmlType;
    }

    public String getSksFormHtmlType()
    {
        return sksFormHtmlType;
    }
    public void setSksFormRuleType(String sksFormRuleType)
    {
        this.sksFormRuleType = sksFormRuleType;
    }

    public String getSksFormRuleType()
    {
        return sksFormRuleType;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }

    public ToStringBuilder toStringBuilder(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("columnId", getColumnId())
                .append("tableId", getTableId())
                .append("columnName", getColumnName())
                .append("columnComment", getColumnComment())
                .append("columnType", getColumnType())
                .append("javaType", getJavaType())
                .append("javaField", getJavaField())
                .append("isPk", getIsPk())
                .append("isIncrement", getIsIncrement())
                .append("isRequired", getIsRequired())
                .append("isInsert", getIsInsert())
                .append("isEdit", getIsEdit())
                .append("isList", getIsList())
                .append("isQuery", getIsQuery())
                .append("queryType", getQueryType())
                .append("htmlType", getHtmlType())
                .append("dictType", getDictType())
                .append("sksQueryHtmlType", getSksQueryHtmlType())
                .append("sksListHtmlType", getSksListHtmlType())
                .append("sksFormHtmlType", getSksFormHtmlType())
                .append("sksFormRuleType", getSksFormRuleType())
                .append("sort", getSort())
                .append("createUserId", getCreateUserId())
                .append("createTime", getCreateTime())
                .append("updateUserId", getUpdateUserId())
                .append("updateTime", getUpdateTime())
                ;
    }


    @Override
    public String toString() {
        return toStringBuilder().toString();
    }


}
